import request from '../../utils/request'

/**
 * 新增供应商报关费
 * 
 */
export async function createDeclareFee( data ) {
	return request(apiPath.mc + "/api/declarefee", {
		method: 'post',
		data
	});
}


 /**
  * 修改供应商报关费
  *
  */
export async function updateDeclareFee( data ) {
    return request(apiPath.mc + "/api/declarefee", {
        method: 'put',
        data
    });
}

  /**
   * 删除供应商报关费
   * 
   */
export async function deleteById({ id }){
    return request(apiPath.mc + "/api/declarefee/" + id,{
        method: 'delete'
    });
}
   
   /**
    *获取供应商报关费
    *
    */
export async function getById({ id }){
    return request(apiPath.mc +  "/api/declarefee/" + id,{
        method: 'get'
    });
}


    /**
     * 分页获取供应商报关费
     * 
     */
export async function getListForPage({ supplierCode,port, page}){
    return request(apiPath.mc + "/api/declarefee",{
        method: 'get',
        data: { supplierCode,port, page: page.page, size: page.size }
    });
}